home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
UTIL
/
MEMORY
/
OLD
/
MEM208SRC
/
FSLib
/
c
/
_PutBytes
< prev
next >
Wrap
Text File
|
1993-08-22
|
615b
|
22 lines
/* Original code (c) Acorn Computers Ltd, 1992-3 */
/* $Id: c._PutBytes 3.1 93/03/09 23:26:35 brian Exp $ */
#include "FS.h"
_kernel_oserror *fsentry_putbytes( FSEntry_PutBytes_Parameter *parm )
{
FileEntry *fe=(FileEntry *)parm->handle;
FileDesc d = FileEntry_Desc( fe );
int pos;
#ifdef DEBUG
printf("putbytes\n");
#endif
if ( d.buffered )
return FileEntry_PutBytes( fe, parm->source_start,
parm->file_offset_to_put_data_to,
parm->bytes_to_write, &pos );
else
return FileEntry_PutByte(fe,parm->byte_to_put);
}